<?php


namespace App\Api\Repositories;


use App\Api\Models\Member;
use App\Api\Models\ShippingAddress;

class AddrRepositorie
{
    //根据用户ID查询手机号
    static public function byIdToPhone($id)
    {
        return Member::getPhone($id);
    }

    //根据手机号查询地址
    static public function byPhoneToAddr($phone)
    {
        return ShippingAddress::getList($phone);
    }
}